package com.fw.annotation.service.impl;

import org.springframework.stereotype.Service;

import com.fw.annotation.service.HelloService;

@Service // 标识这是一个 Spring 管理的 Bean，等价于 <bean id="helloService" class="...">
public class HelloServiceImpl implements HelloService {

    @Override
    public String sayHello() {
        return "Annotation Hello World!";
    }

    @Override
    public String sayHelloTo(String name) {
        return "Annotation Hello " + name;
    }

}
